package com.arlen.general.conf;

import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.defaults.DefaultSqlSessionFactory;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.management.MXBean;

//@Configuration
public class MySqlIoc {


//    @Bean
//    public SqlSessionFactory sqlSessionFactory(){
//        //new DefaultSqlSessionFactory()
//    }
















   // @Bean
    public SqlSessionTemplate sqlSessionTemplate(){
        return new SqlSessionTemplate(new DefaultSqlSessionFactory(new org.apache.ibatis.session.Configuration()));
    }






}
